<template>
  <div class="frameBox">
    <div class="frameBox-img" v-if="title">
      <span class="frameBox-title">{{ title }}</span>
    </div>
    <div class="frameBox-content" :class="{noTitle: !title}">
      <dv-border-box-13
        class="frameBox-content-borbox"
        :color="[ '#1d81bb','#48efc1']"
      >
        <slot />
      </dv-border-box-13>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: String,
  },
  data() {
    return {
    };
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.frameBox {
  height: 100%;
  &-img {
    position: relative;
    display: flex;
    height: 40px;
    line-height: 40px;
    img {
      max-width: 560px;
      width: 100%;
      height: 100%;
    }
  }
  &-title {
    width: 100%;
    text-align: center;
    font-size: 16px;
    color: transparent;
    -webkit-background-clip: text;
    background-image: linear-gradient(to right, #48efc1, #1d81bb);
    font-weight: bold;
  }
  &-content {
    height: calc(100% - 50px);
	&.noTitle{
	  height: calc(100% - 10px);
	}
    &-borbox {
      padding: 10px;
      width: calc(100% - 20px);
      height: calc(100% - 20px);
    }
  }
}
</style>
